<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ include file="/WEB-INF/view/common/common.jsp" %>
<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>职位管理</title>
		<link rel="stylesheet" href="${url}/vendor/font-awesome/css/font-awesome.min.css" />
		<link rel="stylesheet" href="${url}/css/common.css" />
		<link rel="stylesheet" href="${url}/css/table.css"/>
		<link rel="stylesheet" href="${url}/css/header.css" />
		<link rel="Shortcut Icon" href="${url}/img/favicon.ico">
	</head>

	<body>
		<%@ include file="/WEB-INF/view/common/header.jsp" %>
		
		<div class="fixed-bar-top" onclick = "returnTop()" id="fixed-bar"></div>
		<div class="fixed-bar-suggest"></div>
		<div class="feedback">我要反馈</div>
		
		<div class="container bg-min-height">
			<div class="border">
				<div class="caption">
					<a href="${url}/company/Company/CompanyPositionAdd.action" class="btn">发布职位</a>
					<a href="#" class="btn">批量延期</a>
				</div>
				<table>
					<tr>
						<th>编号</th>
						<th>职位名称</th>
						<th>收到简历</th>
						<th>未读简历</th>
						<th>待处理简历</th>
						<th>过期时间</th>
						<th>操作</th>
					</tr>
					<c:forEach items="${positionList }" var="positionlist" varStatus="var">
					<tr>
						<td>${var.count }</td>
						<td><a href="${url}/pub/Pub/PositionDetails.action?position.id=${positionlist.id}">${positionlist.name }</a></td>
						<td><a href="${url}/resume-audit-list.html">${positionlist.allResumeDeliveryCount }</a></td>
						<td><a href="${url}/resume-audit-list.html">${positionlist.unreadResumeCount }</a></td>
						<td><a href="${url}/resume-audit-list.html">${positionlist.unhandleResumeCount }</a></td>
						<td id="outDateBindId${positionlist.id }"><fmt:formatDate value="${positionlist.outDate }" pattern="yyyy-MM-dd"/></td>
						<td>
							<div>
								<a href="${url}/company/Company/CompanyPositionUpdate.action?position.id=${positionlist.id}">编辑</a>
								<span>|</span>
								<a href="javascript:void(0)" onclick="deletePosition(this, ${positionlist.id})">删除</a>
								<span>|</span>
								<a href="javascript:void(0)" onclick="delay(this, ${positionlist.id})" data-default-days="${position.validDays }" id="delayLinkBindId${positionlist.id}">延期</a>
								<span>|</span>
								<a href="${url}/javascript:void(0)">刷新</a>
							</div>
						</td>
					</tr>
					</c:forEach>
			</table>
			</div>
		</div>
		<%@ include file="/WEB-INF/view/common/footer.jsp"%>
		
		<!--模态框class="hide"-->
		<div class="hide" id="modal" style="display: none">
			<div class="modal-wrapper">
				<input type="radio" name="delayDay" id="delayOneDay" value="1"/>
				<label for="delayOneDay">延期1天</label>
				<input type="radio" name="delayDay" id="delayThreeDay" value="3"/>
				<label for="delayThreeDay">延期3天</label>
				<input type="radio" name="delayDay" id="delayFiveDay" value="5" checked/>
				<label for="delayFiveDay">延期5天</label>
				<input type="radio" name="delayDay" id="delayTenDay" value="10"/>
				<label for="delayTenDay">延期10天</label>
				<input type="radio" name="delayDay" id="delayValidDay" value="14"/>
				<label for="delayValidDay">以有效期(<span id="validDay">14</span>天)延期</label>
			</div>
		</div>
		<script src="${url  }/vendor/jquery.min.js"></script>
		<script src="${url  }/js/common.js" ></script>
		<script src="${url  }/js/position-list.js"></script>
		<script src="${url  }/vendor/layer/layer.js"></script>
	</body>

</html>